package cn.xfdzx.android.apps.shop.model;


import cn.xfdzx.android.apps.shop.bean.CarCountBeen;
import cn.xfdzx.android.apps.shop.bean.CreatePusherBeen;
import cn.xfdzx.android.apps.shop.bean.LogininfoBean;
import cn.xfdzx.android.apps.shop.bean.UpdateNumPriceBeen;
import cn.xfdzx.android.apps.shop.bean.VideoEndBeen;
import cn.xfdzx.android.apps.shop.bean.VideoRoomGoodListBeen;
import cn.xfdzx.android.apps.shop.contract.CarNumContract;
import cn.xfdzx.android.apps.shop.contract.CreatePusherContract;
import cn.xfdzx.android.apps.shop.net.RetrofitClient;
import io.reactivex.Flowable;

/**
 * @author azheng
 * @date 2018/6/4.
 * Description：
 */
public class CreatePusherModel implements CreatePusherContract.Model {

    @Override
    public Flowable<UpdateNumPriceBeen> updateNumPrice(String id, String marketprice, String stock, String discountprice) {
        return  RetrofitClient.getInstance().getApi().updateNumPrice(id,marketprice,stock,discountprice);
    }
    @Override
    public Flowable<VideoEndBeen> videoEnd() {
        return RetrofitClient.getInstance().getApi().videoEnd( );
    }

    @Override
    public Flowable<CreatePusherBeen> createPusher(String live_cover, String title) {
        return RetrofitClient.getInstance().getApi().createPusher(live_cover,title);
    }

    /**
     * 参数回调不同用以区分，创建群组，加入群组回调
     * */
    @Override
    public Flowable<LogininfoBean> createImGroup(String id, String type) {
        return RetrofitClient.getInstance().getApi().getLiveImLogin(id,type);
    }

    /**
     * 参数回调不同用以区分，创建群组，加入群组回调
     * */
    @Override
    public Flowable<LogininfoBean> getLiveImLogin(String id, String type) {
        return RetrofitClient.getInstance().getApi().getLiveImLogin(id,type);
    }

    @Override
    public Flowable<VideoRoomGoodListBeen> videoRoomGoodList(String live_id) {
        return RetrofitClient.getInstance().getApi().videoRoomGoodList( live_id);
    }
}
